package com.wanxi.web.service.oder.impl;

import com.wanxi.domain.code.ResultCode;
import com.wanxi.domain.vo.OrderQueryVO;
import com.wanxi.domain.vo.OrderVO;
import com.wanxi.domain.vo.Paging;
import com.wanxi.orderApi.OrderFeign;
import com.wanxi.web.service.oder.OderWebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: OderServiceImpl
 * Description:
 * date: 2022/2/9 10:55
 *
 * @author lxl
 * @version 1.0
 * @since JDK 1.8
 */
@Service
public class OderServiceImpl implements OderWebService {

    @Autowired
    private OrderFeign orderFeign;

    @Override
    public List<OrderVO> getShopOrdersById(OrderQueryVO vo) {
        return orderFeign.getShopOrdersById(vo);
    }

    @Override
    public List<OrderVO> getEnterpriseOrdersById(Long id, Paging paging) {
        return orderFeign.getEnterpriseOrdersById(id,paging);
    }

    @Override
    public ResultCode send(long orderId) {
        return orderFeign.send(orderId);
    }
}
